function kbank_award_load_html(url,uniqueid,container2,progress,postrequest){
	if(AJAX_Compatible){
		var container_eid = uniqueid + '_current';
		if (container2) {
			var container2_eid = uniqueid + '_buttons';
		} else {
			var container2_eid = '';
		}
		if (progress) {
			var progresselement = uniqueid + '_progress';
		} else {
			var progresselement = '';
		}
		
		kBank_HtmlLoader=new kBank_AJAX_HtmlDualLoader(url,postrequest,container_eid,container2_eid,progresselement);
		
		if (kBank_HtmlLoader.load()) {
			return false;
		} else {
			return true;
		}
	} else {
		return true
	}
}

var kBank_HtmlLoader=false;

function kBank_AJAX_HtmlDualLoader(url,postrequest,container_eid,container2_eid,progresselement){
	this.getrequest=url;
	this.postrequest=postrequest;
	
	this.container=fetch_object(container_eid);
	if (container2_eid) {
		this.container2=fetch_object(container2_eid);
	} else {
		this.container2=false;
	}
	if (progresselement) {
		this.progresselement=fetch_object(progresselement);
	} else {
		this.progresselement=false;
	}
}

kBank_AJAX_HtmlDualLoader.prototype.load=function(){
	if(this.progresselement){
		this.progresselement.style.display=""
	}
	if(this.container){
		YAHOO.util.Connect.asyncRequest(
			"POST"
			,this.getrequest
			,{
				success:this.display
				,failure:this.handle_ajax_error
				,timeout:vB_Default_Timeout
				,scope:this
			}
			,this.postrequest
				+"&sessionurl="+SESSIONURL
				+"&securitytoken="+SECURITYTOKEN
				+"&ajax=1"
		)
		
		return true;
	}
	return false
};

kBank_AJAX_HtmlDualLoader.prototype.handle_ajax_error=function(A){
	if(this.progresselement){
		this.progresselement.style.display="none"
	}
	vBulletin_AJAX_Error_Handler(A)
};

kBank_AJAX_HtmlDualLoader.prototype.display=function(C){
	if(this.progresselement){
		this.progresselement.style.display="none"
	}
	if(C.responseXML){
		var H1=C.responseXML.getElementsByTagName("html");
		var H2=C.responseXML.getElementsByTagName("html2");
		var E=C.responseXML.getElementsByTagName("error");
		
		if(H1.length&&H1[0].hasChildNodes()){
			this.container.innerHTML=H1[0].firstChild.nodeValue
		}
		
		if (this.container2 && H2.length && H2[0].hasChildNodes()) {
			this.container2.innerHTML=H2[0].firstChild.nodeValue
		}
		
		if(E.length&&E[0].hasChildNodes()){
			alert(E[0].firstChild.nodeValue)
		}
	}
};